package com.ruoyi.zzw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zzw.mapper.RescueStrengthMapper;
import com.ruoyi.zzw.domain.RescueStrength;
import com.ruoyi.zzw.service.TRescueStrengthService;

/**
 * 救援力量Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-06
 */
@Service
public class RescueStrengthServiceImpl implements TRescueStrengthService
{
    @Autowired
    private RescueStrengthMapper rescueStrengthMapper;

    /**
     * 查询救援力量
     * 
     * @param cRescueId 救援力量主键
     * @return 救援力量
     */
    @Override
    public RescueStrength selectTRescueStrengthByCRescueId(Long cRescueId)
    {
        return rescueStrengthMapper.selectTRescueStrengthByCRescueId(cRescueId);
    }

    /**
     * 查询救援力量列表
     * 
     * @param rescueStrength 救援力量
     * @return 救援力量
     */
    @Override
    public List<RescueStrength> selectTRescueStrengthList(RescueStrength rescueStrength)
    {
        return rescueStrengthMapper.selectTRescueStrengthList(rescueStrength);
    }

    /**
     * 新增救援力量
     * 
     * @param rescueStrength 救援力量
     * @return 结果
     */
    @Override
    public int insertTRescueStrength(RescueStrength rescueStrength)
    {
        return rescueStrengthMapper.insertTRescueStrength(rescueStrength);
    }

    /**
     * 修改救援力量
     * 
     * @param rescueStrength 救援力量
     * @return 结果
     */
    @Override
    public int updateTRescueStrength(RescueStrength rescueStrength)
    {
        return rescueStrengthMapper.updateTRescueStrength(rescueStrength);
    }

    /**
     * 批量删除救援力量
     * 
     * @param cRescueIds 需要删除的救援力量主键
     * @return 结果
     */
    @Override
    public int deleteTRescueStrengthByCRescueIds(Long[] cRescueIds)
    {
        return rescueStrengthMapper.deleteTRescueStrengthByCRescueIds(cRescueIds);
    }

    /**
     * 删除救援力量信息
     * 
     * @param cRescueId 救援力量主键
     * @return 结果
     */
    @Override
    public int deleteTRescueStrengthByCRescueId(Long cRescueId)
    {
        return rescueStrengthMapper.deleteTRescueStrengthByCRescueId(cRescueId);
    }
}
